package com.iotechn.unimall.data.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dobbinsoft.fw.support.model.Page;
import com.iotechn.unimall.data.domain.AssociationDO;
import com.iotechn.unimall.data.vo.AppShowVO;
import com.iotechn.unimall.data.vo.AssociationDetailVO;
import com.iotechn.unimall.data.vo.AssociationVO;
import com.iotechn.unimall.data.vo.UserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AssociationMapper extends BaseMapper<AssociationDO> {

    /**
     * 协会page
     * @param page
     * @param wrapper
     * @return
     */
    public Page<AssociationVO> pageAssociation(IPage page, @Param("ew") QueryWrapper<AssociationDO> wrapper);

    /**
     * 查询协会成员
     * @param id
     * @return
     */
    public List<UserVO> queryUserList(@Param("id") Long id);


    public Page<AppShowVO> pageCompany(IPage page,@Param("unitType") Integer unitType);

}
